/* eslint-disable */
const ServiceServe = require('./serve')
const ServiceBuild = require('./build')

// 命令出口
module.exports = {
  ServiceServe, ServiceBuild,
  ServiceClean: class {
    constructor(api, opts) {
      return async function(args, rawArgs) {
        // 删除 dist_* 文件夹
        const fs = require('fs-extra');
        await fs.remove(api.resolve(opts.outputDir))
        await fs.remove(api.resolve(opts.builderOutputDir))
      }
    }
  }
}